package com.tpsix.controller.dto;

import com.tpsix.annotation.Desensitization;
import com.tpsix.enums.SensitiveTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel("用户视图对象")
public class UserDTO implements Serializable {

    private Integer id;

    @ApiModelProperty("用户名")
    @Desensitization(SensitiveTypeEnum.CHINESE_NAME)
    private String username;

    @ApiModelProperty("密码")
    @Desensitization(SensitiveTypeEnum.PASSWORD)
    private String password;

    @ApiModelProperty("手机号")
    @Desensitization(SensitiveTypeEnum.MOBILE)
    private String mobile;

    @ApiModelProperty("邮箱")
    @Desensitization(SensitiveTypeEnum.EMAIL)
    private String email;

    @ApiModelProperty("部门id")
    private Integer deptId;

    @ApiModelProperty("部门名称")
    private String deptName;

    @ApiModelProperty("头像")
    private String avatar;


}
